<#include "../common/header.htm">
<div class="content-wrapper">
	<section class="content-header">
		<ol class="breadcrumb">
			<li><a href="${ctx}/">首页</a></li>
			<li class="active"><a href="#">账户</a></li>
		</ol>
	</section>
	<section class="content">
		<div class="box">
			<form action="${ctx}/company/payaccountlist" method="get" id="listForm">
			<div class="box-header">
				<div class="row RowSearchWork">
					<div class="col-sm-12">
						<div class="col-sm-3">
							<input type="text" class="form-control" placeholder="请输入企业ID" name="companyId" value="${companyId!}"/>
						</div>
						<div class="col-sm-3">
							<input type="text" class="form-control" placeholder="请输入企业名称" name="companyName" value="${companyName!}"/>
						</div>
						<div class="col-sm-1">
							<input type="button"  class="btn btn-default btn-search" onclick="companys.query()" value="查询" />
						</div>
					</div>
				</div>
			</div>
			<div class="box-body">
				<table class="table table-hover table-bordered table-striped table-manage">
					<thead>
						<tr>
							<th style="width:10%;">序号</th>
							<th style="width:10%;">公司ID</th>
							<th style="width:10%;">公司名称</th>
							<th style="width:10%;">累计充值金额</th>
							<th style="width:10%;">累消费金额</th>
							<th style="width:10%;">余额</th>
							<th style="width:10%;">分销量</th>
							<th style="width:10%;">累计分红</th>
						</tr>
					</thead>
					<tbody>
						<#list page.content as p>
						<tr>
							<td>${page.size * page.number + p_index+1}</td>
							<td>${p.companyId!}</td>
							<td>${p.companyName!}</td>
							<td>${p.accumulatedRecharge!}</td>
							<td>${p.accumulatedConsumption!}</td>
							<td>${p.balance!}</td>
							<td>${p.inviterCount!}</td>
							<td>${p.commissionTotal!}</td>
						</tr>
						</#list>
					</tbody>
				</table>
				<#include "../common/page.htm">
			</div>
			</form>
		</div>
	</section>
</div>

<script type="text/javascript">
	$('.select2').select2();
	$.fn.modal.Constructor.prototype.enforceFocus = function() {};
	
	var companys = {
		query : function() {
			$(":input[name='pageNumber']").val(0);
			$("form").submit();
		}
	};
</script>
<#include "../common/footer.htm">